<template>
  <BasicLayout title="选择机构/陪诊员">
    <IndexList
      slot="content"
      :lists="staffs"
      :menuList="organization"
      @clickItem="handleClick"
    />
    <ShoppingCar slot="footer" @commit="commit" />
  </BasicLayout>
</template>
<script>
import BasicLayout from "@/components/BasicLayout/index.vue";
import IndexList from "@/components/IndexList/index.vue";
import ShoppingCar from "@/components/ShoppingCar/index.vue";
import { organization } from "@/constants/common/organization";
import { staffs } from "@/constants/common/staff";

export default {
  components: {
    IndexList,
    BasicLayout,
    ShoppingCar,
  },
  methods: {
    commit() {
      this.$router.push({ name: "Order" });
    },
    handleClick(query) {
      this.$router.push({ name: "StaffDetail", query });
    },
  },
  data() {
    return {
      staffs,
      organization,
    };
  },
};
</script>

<style></style>
